package com.akkainaction.helloactor.path;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.akkainaction.helloactor.actor.ParentActor;

public class Main {

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys");
        ActorRef parentActorRef = system.actorOf(Props.create(ParentActor.class), "parentActor");
        System.out.println("parentActor path:"+parentActorRef.path());
        System.out.println("actorSystem path:"+system);
    }
}
